package com.example.springcloud.alibaba.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.example.springcloud.entities.CommonResult;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ws
 * Date: 2024-02-13
 * Time: 18:36
 */
public class CustomerBlockHandler {

    public static CommonResult handlerException1(BlockException exception) {
        return new CommonResult(444, "全局自定义处理异常或流控 1");

    }

    public static CommonResult handlerException2(BlockException exception) {
        return new CommonResult(444, "全局自定义处理异常或流控 2");

    }
}
